import request from '@/utils/axios';

export function uploadFileApi(file: File) {
  const formData = new FormData();
  formData.append('file', file);

  return request({
    url: '/upload',
    method: 'post',
    data: formData,
  });
}
